package net.shakewarner.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.gson.annotations.Expose;

@PersistenceCapable(detachable = "true")
public class Measurement {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Expose
	@Persistent
	private String latitude;

	@Expose
	@Persistent
	private String longtitude;

	@Expose
	@Persistent
	private Long time;

	@Expose
	@Persistent
	private Long direction;

	@Expose
	@Persistent
	private Long shakeLevel;

	public Key getKey() {
		return this.key;
	}

	public void setKey(final Key key) {
		this.key = key;
	}

	public String getLatitude() {
		return this.latitude;
	}

	public void setLatitude(final String latitude) {
		this.latitude = latitude;
	}

	public String getLongtitude() {
		return this.longtitude;
	}

	public void setLongtitude(final String longtitude) {
		this.longtitude = longtitude;
	}

	public Long getTime() {
		return this.time;
	}

	public void setTime(final Long time) {
		this.time = time;
	}

	public Long getShakeLevel() {
		return this.shakeLevel;
	}

	public void setShakeLevel(final Long shakeLevel) {
		this.shakeLevel = shakeLevel;
	}

	public Long getDirection() {
		return this.direction;
	}

	public void setDirection(final Long direction) {
		this.direction = direction;
	}
}
